<!--{template header}-->
<!--{eval $adlist = $this->fromcache("adlist");}-->
<div class="wrapper clearfix">
    <div class="content-left">
        <div class="my-answerbox mt10">
            <div class="title">
                <!--{if $type=='all'}-->
                全站最新动态
                <!--{elseif $type=='atentto'}-->
                我关注的动态
                <!--{elseif $type=='my'}-->
                我的动态
                <!--{/if}-->
            </div>
            <div id="qa-tabcard" style="width:690px;">
                <ul>
                    <!--{if $type=='atentto'}-->
                    <li class="on">关注的动态</li>
                    <li><a href="{url doing/default/my}">我的动态</a></li>
                    <li><a href="{url doing/default/all}">全站动态</a></li>
                    <!--{elseif $type=='my'}-->
                    <li><a href="{url doing/default}">关注的动态</a></li>
                    <li class="on">我的动态</li>
                    <li><a href="{url doing/default/all}">全站动态</a></li>
                    <!--{elseif $type=='all'}-->
                    <!--{if $this->user['uid']}-->
                    <li><a href="{url doing/default}">关注的动态</a></li>
                    <li><a href="{url doing/default/my}">我的动态</a></li>
                    <!--{/if}-->
                    <li class='on'>全站动态</li>
                    <!--{/if}-->
                </ul>
            </div>
            <!--广告位1-->
            <!--{if (isset($adlist['doing']['left1']) && trim($adlist['doing']['left1']))}-->
            <div style="margin-top:5px;">{$adlist['doing']['left1']}</div>
            <!--{/if}-->
            <ul class="q-tabmod mt10">
                <!--{if $recommandusers && $page==1}-->
                <li><p class='suggest-header'>您可能感兴趣的人</p></li>
                <!--{loop $recommandusers $recommanduser}-->
                <li class="suggest-item">
                    <div class="suggest-item-inner">
                        <span class="zg-right"><input type="button" onclick="attentto_user($recommanduser['uid'])" id="attenttouser_{$recommanduser['uid']}" value="关注" class="button_attention"></span>
                        <a class="image-link" href="{url user/space/$recommanduser['uid']}" target="_blank"><img alt="{$recommanduser['username']}" src="{$recommanduser['avatar']}" /></a>
                        <div class="item-main">
                            <a class="item-link" href="{url user/space/$recommanduser['uid']}">{$recommanduser['username']}</a>
                            <p class="item-info-minor">
                                <!--{if $recommanduser['category']}-->擅长: 
                                <!--{loop $recommanduser['category'] $category}-->
                                <i class="expert-field"><a target="_blank" href="{url category/view/$category['cid']}">{$category['categoryname']}</a></i>
                                <!--{/loop}-->
                                <!--{/if}-->
                            </p>
                            <p class="item-info-major">{$recommanduser['followers']}人关注 , {$recommanduser['answers']}回答</p>
                        </div>
                    </div>
                </li>
                <!--{/loop}-->
                <!--{/if}-->
                <!--{loop $doinglist $doing}-->
                <li>
                    <div class="avatar">
                        <!--{if $doing['hidden'] && in_array($doing['action'],array(1,8))}-->
                        <img src="{SITE_URL}css/default/avatar.gif" alt="匿名" />
                        <!--{else}-->
                        <a class="pic" target="_blank" title="{$doing['author']}" href="{url user/space/$doing['authorid']}"><img src="{$doing['avatar']}" alt="{$doing['author']}" onmouseover="pop_user_on(this, '{$doing[authorid]}', 'img');"  onmouseout="pop_user_out();" /></a>
                        <!--{/if}-->
                    </div>
                    <div class="msgcontent">
                        <div class="source"> 
                            <!--{if $doing['hidden'] && in_array($doing['action'],array(1,8))}-->
                            匿名
                            <!--{else}-->
                            <a title="{$doing['author']}"  target="_blank" href="{url user/space/$doing['authorid']}">{$doing['author']}</a> 
                            <!--{/if}-->
                            {$doing['actiondesc']}<span class="time">{$doing['doing_time']}</span>
                        </div>
                        <div class="title"><a href="{url question/view/$doing['questionid']}" target="_blank">{$doing['title']}?</a></div>
                        <div class="detail"><p>{eval echo cutstr($doing['content'],500)}</p></div>
                        <div class="related">
                            <div class="pv">{$doing['attentions']} 人关注 <span class="dot">•</span> {$doing['answers']} 个回答 <span class="dot">•</span> {$doing['views']} 次浏览 <span class="dot">•</span> 发表于 {$doing['question_time']} </div>
                        </div>
                        <!--{if $doing['referid']}-->
                        <div class="quote">
                            <div class="avatar">
                                <a href="{url user/space/$doing['refer_authorid']}"  target="_blank" class="pic"><img alt="自由的风" src="{$doing['refer_avatar']}" onmouseover="pop_user_on(this, '{$doing['refer_authorid']}', 'img');"  onmouseout="pop_user_out();" /></a>
                            </div>
                            <div class="detail"><p>{eval echo cutstr($doing['refer_content'],200)}</p></div>
                        </div>
                        <!--{/if}-->
                    </div>
                    <div class="clr"></div>
                </li>
                <!--{/loop}-->
                <!--{if !$doinglist && $type=='my'}-->
                <li><p>帮助他人，快乐自己！拿出你的热心，帮忙大家解决问题吧。 <a href='{url category/view/all/1}'>这些问题需要您的帮助</a></p></li>
                <!--{/if}-->
            </ul>
        </div>	
        <div class="pages">{$departstr}</div>	
    </div>

    <div class="aside-right">
        <div class="modbox mt10">
            <div class="title">热门用户</div>
            <ul class="left-expert-list">
                <!--{eval $activeuserlist=$this->fromcache('activeuser');}-->
                <!--{loop $activeuserlist $index $activeuser}-->
                <!--{eval $index++;}-->
                <li>
                    <div class="pic"><a title="{$activeuser['username']}" target="_blank" href="{url user/space/$activeuser['uid']}"><img width="50" height="50" alt="{$activeuser['username']}" src="{$activeuser['avatar']}"  onmouseover="pop_user_on(this, '{$activeuser[uid]}', '');"  onmouseout="pop_user_out();"/></a></div>
                    <h3><a title="{$activeuser['username']}" target="_blank" href="{url user/space/$activeuser['uid']}" onmouseover="pop_user_on(this, '{$activeuser[uid]}', 'text');"  onmouseout="pop_user_out();">{$activeuser['username']}</a></h3>
                    <span>{$activeuser['answers']}回答</span>
                    <span>{$activeuser['supports']}赞同</span>
                    <p><a href="{url question/add/$activeuser['uid']}" class="invite">向TA求助</a></p>
                </li>
                <!--{/loop}-->
            </ul>
        </div>
        <!--广告位2-->
        <!--{if (isset($adlist['doing']['right1']) && trim($adlist['doing']['right1']))}-->
        <div style="margin-top: 5px;">{$adlist['doing']['right1']}</div>
        <!--{/if}-->
        <div class="modbox mt10">
            <h3 class="title">热门标签</h3>
            <div class="hot-tags">
                <!--{eval $taglist=$this->fromcache('hosttaglist');}-->
                <!--{loop $taglist $tag}-->
                <a target="_blank" title="$tag['name']" href="{url question/search/tag:$tag['name']}">{$tag['name']}</a>
                <!--{/loop}-->
            </div>
        </div>
         <!--广告位3-->
        <!--{if (isset($adlist['doing']['right2']) && trim($adlist['doing']['right2']))}-->
        <div style="margin-top: 5px;">{$adlist['doing']['right1']}</div>
        <!--{/if}-->
        <div class="modbox mt10">
            <div class="title">一周热点问题</div>
            <ul class="right-list">
                <!--{eval $attentionlist=$this->fromcache('attentionlist');}-->
                <!--{loop $attentionlist $index $question}-->
                <!--{eval $index++;}-->
                <li>
                    <!--{if $index<4}-->
                    <em class="n1">{$index}</em>
                    <!--{else}-->
                    <em class="n2">{$index}</em>
                    <!--{/if}-->
                    <a  title="{$question['title']}" target="_blank" href="{url question/view/$question['id']}">{eval echo cutstr($question['title'],40,'');}</a>
                </li>
                <!--{/loop}-->
            </ul>
        </div>
    </div>
</div>
<!--{template footer}-->
